<?php
// 这是系统自动生成的middleware定义文件
$baseMiddleware = [
    // Token 验证
    \app\admin\middleware\common\CheckAuth::class,
    // 语言切换
    \app\admin\middleware\common\LanguageSwitch::class,
    // 操作日志
    \app\admin\middleware\common\ActionLog::class,
    // 权限检查
    \app\admin\middleware\common\CheckPermission::class,
    // 加密字段
    \app\admin\middleware\common\EncryptFields::class,
    // 载入系统设置
    \app\admin\middleware\common\LoadAdminConfig::class,
];

if (file_exists(root_path() . 'install.lock')) {
    return $baseMiddleware;
} else {
    return [];
}